﻿using System;
using System.Linq.Expressions;

namespace StudyEnglish.Application.Filter
{
    /// <summary>
    /// Item
    /// </summary>
    public class FilterItem<T> : BaseFilterItem
    {
        /// <summary>
        /// Predicate - building condition 
        /// </summary>
        public Expression<Func<T, bool>> ItemPredicate;


        public FilterItem()
        {
            
        }

        public FilterItem(string name, Expression<Func<T, bool>> itemPredicate)
        {
            ItemPredicate = itemPredicate;
            Name = name;
        }
    }
}